package SellTicketShop;

public class SellTicketsDemo {
    public static void main(String[] args) {
        SellTickets sellTicket = new SellTickets(); // 创建SellTicket类的对象

        // 创建三个Thread类的对象，分别代表三个窗口
        Thread window1 = new Thread(sellTicket, "窗口1");
        Thread window2 = new Thread(sellTicket, "窗口2");
        Thread window3 = new Thread(sellTicket, "窗口3");

        // 启动线程
        window1.start();
        window2.start();
        window3.start();
    }
}